package game.metalmax.controller
{
	import game.metalmax.ui.CanvasMediator;
	import game.metalmax.ui.GuideLayerMediator;
	import game.metalmax.ui.UILayerMediator;
	import game.metalmax.ui.WindowLayerMediator;
	
	import showtime.framework.mvc.interfaces.INotification;
	import showtime.framework.mvc.patterns.command.SimpleCommand;

	/**
	 * @project Client
	 * @date 2011-7-5
	 * @author 绿豆蛙
	 * 
	 */
	public class ViewCommand extends SimpleCommand
	{
		public function ViewCommand()
		{
		}
		
		override public function execute(notification:INotification):void
		{					
			facade.registerMediator(new CanvasMediator(notification.getBody()));
			facade.registerMediator(new UILayerMediator(notification.getBody()));
			facade.registerMediator(new WindowLayerMediator(notification.getBody()));
			facade.registerMediator(new GuideLayerMediator(notification.getBody()));
		}
	}
}